clear
*** Master do-file 
*** Reproduction script for the paper 
*** "How do researchers choose their goals of inference? A survey experiment on 
*** the effects of the state of research and method preferences on the choice 
*** between research goals"
*** Felix Bethke (ORCID: https://orcid.org/0000-0002-4259-6071)
*** Ingo Rohlfing (ORCID: https://orcid.org/0000-0001-8715-4771)

*** Please read the README-file before executing the do-file

set more off
capture log off
version 15.1

/* Reproduction information
If the working directory has not been set already to the top level of the 
folder structure (see README-file), the following line could be 
uncommented to set the path to the working directory by pasting the path
to the reproduction material between the ""
*/
* cd ""

**Install packages**
net install cleanplots, from("https://tdmize.github.io/data/cleanplots") replace
ssc install coefplot, replace
net install gr0059_1.pkg, from(http://www.stata-journal.com/software/sj15-1) replace
ssc install asdoc, replace
ssc install estout, replace
net install st0085_2.pkg, from(http://www.stata-journal.com/software/sj14-2) replace
ssc install table1, replace

**Set schemas
set scheme cleanplots, perm
graph set window fontface "Arial Narrow"

**Run do-files and log results
log using logfile, replace text name(logfile)
do "code/1dataprep.do"
do "code/2analysis.do"
log close logfile
